#ifndef PIECEWISE_LINEAR_INTERPOLATION_HPP
#define PIECEWISE_LINEAR_INTERPOLATION_HPP

class PiecewiseLinearInterpolation{
public:
    PiecewiseLinearInterpolation();
    ~PiecewiseLinearInterpolation();
    bool load(float *x_set,float *y_set,int n_point);
    bool check(float x);
    float calculate(float x);
    void debugPrint(void);
private:
    float *x_set = nullptr;
    float *y_set = nullptr;
    int n_point = 0;
};

#endif
